package com.example.dnfgamercommunitybackend.dao;

import com.example.dnfgamercommunitybackend.entity.Article;
import com.example.dnfgamercommunitybackend.entity.FavoriteArticle;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FavoriteArticleDao {
    int addFavoriteRecord(FavoriteArticle favoriteArticle);

    FavoriteArticle existCord(FavoriteArticle favoriteArticle);

    List<Article> getFavoriteListByUserId(int accountId);

    int cancelFavoriteArticle(FavoriteArticle favoriteArticle);
}
